'use client';

import { useEffect } from 'react';

export default function IsInChat({
  setIsInChat,
}: { setIsInChat: (inChat: boolean) => void }) {
  useEffect(() => {
    setIsInChat(true);
    return () => setIsInChat(false);
  }, [setIsInChat]);

  return null;
}
